<?php 



$password=$_POST["password"];
$password2=$_POST["password2"];	//接收到ajax发送过来的数据

if ($password2!=$password) {
	$passarr2=array(
		"error"=>1,
		"info"=>"确认密码与密码不一样"
		);
	echo json_encode($passarr2);	//对变量进行json编码输出

}else{
	
	$passarr2 = array(
		'error'=>0,
		'info'=>"确认密码一致"
		);
	echo json_encode($passarr2);
 
};
















 ?>